/**
 * 
 */
package com.zhz.project.dal.ibatis;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.zhz.project.dal.daointerface.TocDoajDAO;
import com.zhz.project.dal.dataobject.TocDoaj;

/**
 * @author lidian
 * 
 */
public class TocDoajDAOImpl extends SqlMapClientDaoSupport implements
		TocDoajDAO {
	public void insertTocDoaj(TocDoaj tocDoaj) {
		getSqlMapClientTemplate().insert("insertTocDoaj", tocDoaj);
	}

	public int getAllTocDoajsCount() {
		return ((Integer) getSqlMapClientTemplate().queryForObject(
				"selectAllTocDoajsCount")).intValue();
	}
}
